<?
// handle errors
handle_error($errors);
?>
<!DOCTYPE HTML><html>
<head>
    <? echo $h->meta($title, $kwd, $dpn); ?>
    <? require_once("lib.php"); ?>
    <script src="<?=$ecom?>/js/jquery.validate.js" type="text/javascript"></script>
    <script src="<?=$ecom?>/js/jquery.metadata.js" type="text/javascript"></script>
</head>
<body id="">
<? include_once("header.php"); ?>
<div id="wrap">
    <div class="breadcrumb">
        <a href="./"><?=WEB_INDEX_PAGE?></a> &gt; <a href="member.html"><?=WEB_MEMBER_CENTER?></a> &gt; <span><?=$cate_name?></span>
    </div><!--breadcrumb end-->
    <div id="" class="w180 left">
        <? require 'member_menu.php' ?>
    </div><!--. w220-->
    <div id="" class="right w760">
        <div class="">
            <div class="h2news">
                <h2><?=$cate_name?></h2>
            </div>
            <div class="content">
                <div class="">
                    <div class="address_title_a">
                        <div class="right"></div>
                        <div clss="left font14px"><?=WEB_WALLET_USABLE_BALANCE?>：&nbsp;<strong class="red"><?=$customer_info['usable_balance']?></strong>&nbsp;&nbsp;&nbsp;&nbsp;<?=WEB_WALLET_USABLE_BALANCE_ALL?>：&nbsp;<strong class="red"><?=$customer_info['all_balance']?></strong></div>
                        <div class="clear"></div>
                    </div>
                    <script type="text/javascript">
                        $(function(){
                            $('.tags_selected').click(function(){
                                var tags_type = $(this).children('input:hidden').val();
                                location.href = 'wallet.php?type='+tags_type+'&page=1';
                            });
                        });
                    </script>
                    <br>
                    <div class="h2pros">
                        <ul class="tags_change"><li class="tags_selected"><input type="hidden" name="product" value="1"><span><?=WEB_WALLET_USABLE_BALANCE_INTO?></span></li><li class="tags_selected"><input type="hidden" name="document" value="2"><span><?=WEB_WALLET_USABLE_BALANCE_OUTTO?></span></li></ul>
                    </div>

                    <div class="tags_select">
                        <table width="100%" class=" review_list">
                            <?
                            if($type == 1){
                                $str='<tr class="order_list_h tcenter"><td class="l" width="100">'.WEB_WALLET_USABLE_BALANCE_INTO_TIME.'</td><td width="50">'.WEB_WALLET_USABLE_BALANCE_FIGURE.'</td><td width="80">'.WEB_WALLET_USABLE_BALANCE_ORDER_NUM.'</td><td width="">'.WEB_WALLET_USABLE_BALANCE_DESCRIPTION.'</td></tr>';
                                $k=0;
                            foreach($wallet_info as $val){
                                $recode_info_i1 = '';
                                $recode_info_i2 = '';

                                $str.='<tr><td width="" class="l tcenter">'.$val['create_time'].'</td><td class=tcenter>'.$val['amount'].'</td><td width="" class="tcenter">'.$val['recode_value'].'</td><td width="200" class="tcenter" style="text-align:justify;text-justify:newspaper">'.$val['temp2']['description'].'&nbsp;<a href="old_order.php?code='.$val['recode_value'].'" class="blue">'.WEB_WALLET_USABLE_BALANCE_INFO.'</a></td></tr>';
                                $k++;
                            }
                            $str.='';
                            $k++;
                            echo $str;
                            }elseif($type == 2){
                                $str='<tr class="order_list_h tcenter"><td class="l" width="100">'.WEB_WALLET_USABLE_BALANCE_OUTTO_TIME.'</td><td width="50">'.WEB_WALLET_USABLE_BALANCE_FIGURE.'</td><td width="80">'.WEB_WALLET_USABLE_BALANCE_ORDER_NUM.'</td><td width="">'.WEB_WALLET_USABLE_BALANCE_DESCRIPTION.'</td></tr>';
                                $k=0;
                                foreach($wallet_info as $val){
                                    $recode_info_i1 = '';
                                    $recode_info_i2 = '';

                                    $str.='<tr><td width="" class="l tcenter">'.$val['create_time'].'</td><td class=tcenter>'.$val['amount'].'</td><td width="" class="tcenter">'.$val['recode_value'].'</td><td width="200" class="tcenter" style="text-align:justify;text-justify:newspaper">'.$val['description'].'&nbsp;<a href="old_order.php?code='.$val['recode_value'].'" class="blue">'.WEB_WALLET_USABLE_BALANCE_INFO.'</a></td></tr>';
                                    $k++;
                                }
                                $str.='';
                                $k++;
                                echo $str;

                            }
                            ?>
                        </table>

                        <?echo echo_page($page, $pages, $url.'-t'.$type.'-p',$lang); ?>
                    </div>
                </div><!--. featured product-->
                </div>
            </div>
            <div class="map"></div>
            <div class="clear"></div>
        </div><!--. featured product-->
    </div><!--# featured_and_ad_right-->
    <div class="clear"></div>
    <div class="px20"></div>
    <div class="clear"></div>
</div>
<? include("footer.php"); ?>
<script type="text/javascript">
    $(document).ready(function(){
        $(".need_check").validate({meta: "validate", onkeyup: false,
            errorPlacement: function( label, element ) {
                element.parent().append("<br>").append(label);
            }

        });
    });
</script>
</body>
</html>
